<?php

namespace App\Http\Controllers;

use App\Http\Controllers\BaseController;
use App\Services\SystemModuleInfoService;

class SystemModuleInfoController extends BaseController
{
    public function __construct(SystemModuleInfoService $systemModuleInfoService)
    {
        $this->systemModuleInfoService = $systemModuleInfoService;
    }

    public function index()
    {
        $param = $this->validationParameter([
            'module|模块' => 'require',
        ]);

        $data = $this->systemModuleInfoService->getAll($param);

        return $this->response->success($data);
    }

}
